Channel.fromJson constructor

Channel.fromJson(
  1. Map json_
)

Implementation

Channel.fromJson(core.Map json_)
    : this(
        activationToken: json_.containsKey('activationToken')
            ? json_['activationToken'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        cryptoKeyName: json_.containsKey('cryptoKeyName')
            ? json_['cryptoKeyName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        provider: json_.containsKey('provider')
            ? json_['provider'] as core.String
            : null,
        pubsubTopic: json_.containsKey('pubsubTopic')
            ? json_['pubsubTopic'] as core.String
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );