ResourceClaimConsumerReference.fromJson constructor

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

Creates a ResourceClaimConsumerReference from JSON data.

Implementation

factory ResourceClaimConsumerReference.fromJson(Map<String, dynamic> json) {
  final tempApiGroupJson = json['apiGroup'];
  final tempNameJson = json['name'];
  final tempResourceJson = json['resource'];
  final tempUidJson = json['uid'];

  final String? tempApiGroup = tempApiGroupJson;
  final String tempName = tempNameJson;
  final String tempResource = tempResourceJson;
  final String tempUid = tempUidJson;

  return ResourceClaimConsumerReference(
    apiGroup: tempApiGroup,
    name: tempName,
    resource: tempResource,
    uid: tempUid,
  );
}