Channel.fromJson constructor
Channel.fromJson(
- Map json_
Implementation
Channel.fromJson(core.Map json_)
: this(
auditDetails: json_.containsKey('auditDetails')
? ChannelAuditDetails.fromJson(
json_['auditDetails'] as core.Map<core.String, core.dynamic>)
: null,
brandingSettings: json_.containsKey('brandingSettings')
? ChannelBrandingSettings.fromJson(json_['brandingSettings']
as core.Map<core.String, core.dynamic>)
: null,
contentDetails: json_.containsKey('contentDetails')
? ChannelContentDetails.fromJson(json_['contentDetails']
as core.Map<core.String, core.dynamic>)
: null,
contentOwnerDetails: json_.containsKey('contentOwnerDetails')
? ChannelContentOwnerDetails.fromJson(json_['contentOwnerDetails']
as core.Map<core.String, core.dynamic>)
: null,
conversionPings: json_.containsKey('conversionPings')
? ChannelConversionPings.fromJson(json_['conversionPings']
as core.Map<core.String, core.dynamic>)
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
localizations: json_.containsKey('localizations')
? (json_['localizations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
ChannelLocalization.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
snippet: json_.containsKey('snippet')
? ChannelSnippet.fromJson(
json_['snippet'] as core.Map<core.String, core.dynamic>)
: null,
statistics: json_.containsKey('statistics')
? ChannelStatistics.fromJson(
json_['statistics'] as core.Map<core.String, core.dynamic>)
: null,
status: json_.containsKey('status')
? ChannelStatus.fromJson(
json_['status'] as core.Map<core.String, core.dynamic>)
: null,
topicDetails: json_.containsKey('topicDetails')
? ChannelTopicDetails.fromJson(
json_['topicDetails'] as core.Map<core.String, core.dynamic>)
: null,
);