toJs property

Map<String, dynamic> get toJs

Implementation

Map<String, dynamic> get toJs {
  final toJson = {
    "title": title,
    "body": body,
    "tag": id,
    "payload": payload,
    "group": group,
    "launch": launch,
    "temolateType": temolateType.name,
    "largImage": largeImage
  };
  if (image != null) {
    toJson["imgae"] = image;
  }

  return toJson;
}