toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> json = {
    'disableTitle': disableTitle,
    'title': title,
    'content': content,
    'data': data,
    'forceShowDetailContent': forceShowDetailContent,
    'templateId': templateId,
  };

  if (iOSConfig != null) {
    json['IOSConfig'] = iOSConfig!.toJson();
  }
  if (androidConfig != null) {
    json['androidConfig'] = androidConfig!.toJson();
  }

  return json;
}