toJSON method

Map<String, dynamic> toJSON()
override

Implementation

Map<String, dynamic> toJSON() => {
      'action': action?.toJSON(),
      'actionButtons': actionButtons.map((e) => e.toJSON()).toList(),
      'badge': badge?.toJSON(),
      'customization': customization?.toJSON(),
      'mediaAttachment': mediaAttachment?.toJSON(),
      'templateName': templateName,
      'templatePlaceholders': templatePlaceholders,
      'text': text == null ? null : text,
      'title': title == null ? null : title,
    };