Message.fromJson constructor

Message.fromJson(
  1. Map json_
)

Implementation

Message.fromJson(core.Map json_)
    : this(
        body: json_.containsKey('body') ? json_['body'] as core.String : null,
        displayInterval: json_.containsKey('displayInterval')
            ? TimeInterval.fromJson(json_['displayInterval']
                as core.Map<core.String, core.dynamic>)
            : null,
        header: json_.containsKey('header')
            ? json_['header'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        localizedBody: json_.containsKey('localizedBody')
            ? LocalizedString.fromJson(
                json_['localizedBody'] as core.Map<core.String, core.dynamic>)
            : null,
        localizedHeader: json_.containsKey('localizedHeader')
            ? LocalizedString.fromJson(json_['localizedHeader']
                as core.Map<core.String, core.dynamic>)
            : null,
        messageType: json_.containsKey('messageType')
            ? json_['messageType'] as core.String
            : null,
      );