ChannelBrandingSettings.fromJson constructor

ChannelBrandingSettings.fromJson(
  1. Map json_
)

Implementation

ChannelBrandingSettings.fromJson(core.Map json_)
    : this(
        channel: json_.containsKey('channel')
            ? ChannelSettings.fromJson(
                json_['channel'] as core.Map<core.String, core.dynamic>)
            : null,
        hints: json_.containsKey('hints')
            ? (json_['hints'] as core.List)
                .map((value) => PropertyValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image: json_.containsKey('image')
            ? ImageSettings.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        watch: json_.containsKey('watch')
            ? WatchSettings.fromJson(
                json_['watch'] as core.Map<core.String, core.dynamic>)
            : null,
      );