Message.fromJson constructor

Message.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Message.fromJson(Map<String, dynamic> json) {
  return Message(
    action: (json['Action'] as String?)?.toAction(),
    body: json['Body'] as String?,
    imageIconUrl: json['ImageIconUrl'] as String?,
    imageSmallIconUrl: json['ImageSmallIconUrl'] as String?,
    imageUrl: json['ImageUrl'] as String?,
    jsonBody: json['JsonBody'] as String?,
    mediaUrl: json['MediaUrl'] as String?,
    rawContent: json['RawContent'] as String?,
    silentPush: json['SilentPush'] as bool?,
    timeToLive: json['TimeToLive'] as int?,
    title: json['Title'] as String?,
    url: json['Url'] as String?,
  );
}