ProductPolicy.fromJson constructor
ProductPolicy.fromJson(
- Map json_
Implementation
ProductPolicy.fromJson(core.Map json_)
: this(
autoInstallPolicy: json_.containsKey('autoInstallPolicy')
? AutoInstallPolicy.fromJson(json_['autoInstallPolicy']
as core.Map<core.String, core.dynamic>)
: null,
autoUpdateMode: json_.containsKey('autoUpdateMode')
? json_['autoUpdateMode'] as core.String
: null,
enterpriseAuthenticationAppLinkConfigs: json_
.containsKey('enterpriseAuthenticationAppLinkConfigs')
? (json_['enterpriseAuthenticationAppLinkConfigs'] as core.List)
.map((value) =>
EnterpriseAuthenticationAppLinkConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
managedConfiguration: json_.containsKey('managedConfiguration')
? ManagedConfiguration.fromJson(json_['managedConfiguration']
as core.Map<core.String, core.dynamic>)
: null,
productId: json_.containsKey('productId')
? json_['productId'] as core.String
: null,
trackIds: json_.containsKey('trackIds')
? (json_['trackIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
tracks: json_.containsKey('tracks')
? (json_['tracks'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);