Channel.fromJson constructor

Channel.fromJson(
  1. Map _json
)

Implementation

Channel.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        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, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        release: _json.containsKey('release')
            ? Release.fromJson(
                _json['release'] as core.Map<core.String, core.dynamic>)
            : null,
        retainedReleaseCount: _json.containsKey('retainedReleaseCount')
            ? _json['retainedReleaseCount'] as core.int
            : null,
        ttl: _json.containsKey('ttl') ? _json['ttl'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
        url: _json.containsKey('url') ? _json['url'] as core.String : null,
      );