ResourceGroup.fromJson constructor

ResourceGroup.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ResourceGroup.fromJson(Map<String, dynamic> json) {
  return ResourceGroup(
    arn: json['arn'] as String,
    createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object),
    tags: (json['tags'] as List)
        .whereNotNull()
        .map((e) => ResourceGroupTag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}