ResourceLocation.fromJson constructor

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

Implementation

factory ResourceLocation.fromJson(Map<String, dynamic> json) {
  return ResourceLocation(
    availabilityZone: json['availabilityZone'] as String?,
    regionName: (json['regionName'] as String?)?.toRegionName(),
  );
}