Notification.fromJson constructor

Notification.fromJson(
  1. Map json_
)

Implementation

Notification.fromJson(core.Map json_)
    : this(
        customAttributes: json_.containsKey('custom_attributes')
            ? (json_['custom_attributes']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        eventTypes: json_.containsKey('event_types')
            ? (json_['event_types'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        objectNamePrefix: json_.containsKey('object_name_prefix')
            ? json_['object_name_prefix'] as core.String
            : null,
        payloadFormat: json_.containsKey('payload_format')
            ? json_['payload_format'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        topic:
            json_.containsKey('topic') ? json_['topic'] as core.String : null,
      );