toModel method

AndroidNotification toModel()

Implementation

fmc1.AndroidNotification toModel() {
  return fmc1.AndroidNotification(
    title: title,
    body: body,
    icon: icon,
    color: color,
    sound: sound,
    tag: tag,
    image: imageUrl,
    clickAction: clickAction,
    bodyLocKey: bodyLocKey,
    bodyLocArgs: bodyLocArgs,
    titleLocKey: titleLocKey,
    titleLocArgs: titleLocArgs,
    channelId: channelId,
    ticker: ticker,
    sticky: sticky,
    eventTime: eventTimestamp?.toUtc().toIso8601String(),
    localOnly: localOnly,
    notificationPriority: priority?._code,
    vibrateTimings: vibrateTimingsMillis,
    defaultVibrateTimings: defaultVibrateTimings,
    defaultSound: defaultSound,
    lightSettings: lightSettings?.toModel(),
    defaultLightSettings: defaultLightSettings,
    visibility: visibility?.toString().split('.').last,
    notificationCount: notificationCount,
  );
}