GetLicenseConfigurationResponse.fromJson constructor
GetLicenseConfigurationResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetLicenseConfigurationResponse.fromJson(Map<String, dynamic> json) {
return GetLicenseConfigurationResponse(
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?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}