toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final action = this.action;
  final body = this.body;
  final data = this.data;
  final silentPush = this.silentPush;
  final substitutions = this.substitutions;
  final title = this.title;
  final url = this.url;
  return {
    if (action != null) 'Action': action.toValue(),
    if (body != null) 'Body': body,
    if (data != null) 'Data': data,
    if (silentPush != null) 'SilentPush': silentPush,
    if (substitutions != null) 'Substitutions': substitutions,
    if (title != null) 'Title': title,
    if (url != null) 'Url': url,
  };
}