BaseConfigurationItem.fromJson constructor
BaseConfigurationItem.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BaseConfigurationItem.fromJson(Map<String, dynamic> json) {
return BaseConfigurationItem(
accountId: json['accountId'] as String?,
arn: json['arn'] as String?,
availabilityZone: json['availabilityZone'] as String?,
awsRegion: json['awsRegion'] as String?,
configuration: json['configuration'] as String?,
configurationItemCaptureTime:
timeStampFromJson(json['configurationItemCaptureTime']),
configurationItemStatus: (json['configurationItemStatus'] as String?)
?.toConfigurationItemStatus(),
configurationStateId: json['configurationStateId'] as String?,
resourceCreationTime: timeStampFromJson(json['resourceCreationTime']),
resourceId: json['resourceId'] as String?,
resourceName: json['resourceName'] as String?,
resourceType: (json['resourceType'] as String?)?.toResourceType(),
supplementaryConfiguration:
(json['supplementaryConfiguration'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
version: json['version'] as String?,
);
}