CloudFormationStackRecord.fromJson constructor
CloudFormationStackRecord.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CloudFormationStackRecord.fromJson(Map<String, dynamic> json) {
return CloudFormationStackRecord(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
destinationInfo: json['destinationInfo'] != null
? DestinationInfo.fromJson(
json['destinationInfo'] as Map<String, dynamic>)
: null,
location: json['location'] != null
? ResourceLocation.fromJson(json['location'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
resourceType: (json['resourceType'] as String?)?.toResourceType(),
sourceInfo: (json['sourceInfo'] as List?)
?.whereNotNull()
.map((e) => CloudFormationStackRecordSourceInfo.fromJson(
e as Map<String, dynamic>))
.toList(),
state: (json['state'] as String?)?.toRecordState(),
);
}