toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (body != null) 'body': body!,
      if (displayInterval != null) 'displayInterval': displayInterval!,
      if (header != null) 'header': header!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (localizedBody != null) 'localizedBody': localizedBody!,
      if (localizedHeader != null) 'localizedHeader': localizedHeader!,
      if (messageType != null) 'messageType': messageType!,
    };