toJson method
Implementation
Map<String, dynamic> toJson() {
final action = this.action;
final body = this.body;
final imageIconUrl = this.imageIconUrl;
final imageSmallIconUrl = this.imageSmallIconUrl;
final imageUrl = this.imageUrl;
final jsonBody = this.jsonBody;
final mediaUrl = this.mediaUrl;
final rawContent = this.rawContent;
final silentPush = this.silentPush;
final timeToLive = this.timeToLive;
final title = this.title;
final url = this.url;
return {
if (action != null) 'Action': action.toValue(),
if (body != null) 'Body': body,
if (imageIconUrl != null) 'ImageIconUrl': imageIconUrl,
if (imageSmallIconUrl != null) 'ImageSmallIconUrl': imageSmallIconUrl,
if (imageUrl != null) 'ImageUrl': imageUrl,
if (jsonBody != null) 'JsonBody': jsonBody,
if (mediaUrl != null) 'MediaUrl': mediaUrl,
if (rawContent != null) 'RawContent': rawContent,
if (silentPush != null) 'SilentPush': silentPush,
if (timeToLive != null) 'TimeToLive': timeToLive,
if (title != null) 'Title': title,
if (url != null) 'Url': url,
};
}