LicenseConfiguration.fromJson constructor
LicenseConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LicenseConfiguration.fromJson(Map<String, dynamic> json) {
return LicenseConfiguration(
automatedDiscoveryInformation:
json['AutomatedDiscoveryInformation'] != null
? AutomatedDiscoveryInformation.fromJson(
json['AutomatedDiscoveryInformation'] as Map<String, dynamic>)
: null,
consumedLicenseSummaryList: (json['ConsumedLicenseSummaryList'] as List?)
?.whereNotNull()
.map(
(e) => ConsumedLicenseSummary.fromJson(e as Map<String, dynamic>))
.toList(),
consumedLicenses: json['ConsumedLicenses'] as int?,
description: json['Description'] as String?,
disassociateWhenNotFound: json['DisassociateWhenNotFound'] as bool?,
licenseConfigurationArn: json['LicenseConfigurationArn'] as String?,
licenseConfigurationId: json['LicenseConfigurationId'] as String?,
licenseCount: json['LicenseCount'] as int?,
licenseCountHardLimit: json['LicenseCountHardLimit'] as bool?,
licenseCountingType:
(json['LicenseCountingType'] as String?)?.toLicenseCountingType(),
licenseRules: (json['LicenseRules'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
managedResourceSummaryList: (json['ManagedResourceSummaryList'] as List?)
?.whereNotNull()
.map(
(e) => ManagedResourceSummary.fromJson(e as Map<String, dynamic>))
.toList(),
name: json['Name'] as String?,
ownerAccountId: json['OwnerAccountId'] as String?,
productInformationList: (json['ProductInformationList'] as List?)
?.whereNotNull()
.map((e) => ProductInformation.fromJson(e as Map<String, dynamic>))
.toList(),
status: json['Status'] as String?,
);
}