Resource.fromJson constructor
Resource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Resource.fromJson(Map<String, dynamic> json) {
return Resource(
arn: json['arn'] as String?,
creationTime: timeStampFromJson(json['creationTime']),
lastUpdatedTime: timeStampFromJson(json['lastUpdatedTime']),
resourceGroupArn: json['resourceGroupArn'] as String?,
resourceShareArn: json['resourceShareArn'] as String?,
status: (json['status'] as String?)?.toResourceStatus(),
statusMessage: json['statusMessage'] as String?,
type: json['type'] as String?,
);
}