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, value) => core.MapEntry(
                  key,
                  value 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,
      );