toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'title': title,
    'body': body,
    'title-loc-key': titleLocKey,
    'title-loc-args': titleLocArgs,
    'subtitle': subtitle,
    'subtitle-loc-key': subtitleLocKey,
    'subtitle-loc-args': subtitleLocArgs,
    'body-loc-key': bodyLocKey,
    'body-loc-args': bodyLocArgs,
    'launch-image': launchImage,
  }..removeWhere((k, v) => v == null);
}