Origin.fromJson constructor

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

Implementation

factory Origin.fromJson(Map<String, dynamic> json) {
  return Origin(
    name: json['name'] as String?,
    protocolPolicy:
        (json['protocolPolicy'] as String?)?.toOriginProtocolPolicyEnum(),
    regionName: (json['regionName'] as String?)?.toRegionName(),
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
  );
}