Snapshot.fromJson constructor

Snapshot.fromJson(
  1. Map json_
)

Implementation

Snapshot.fromJson(core.Map json_)
    : this(
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        topic:
            json_.containsKey('topic') ? json_['topic'] as core.String : null,
      );