OwnerReference.fromJson constructor

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

Creates a OwnerReference from JSON data.

Implementation

factory OwnerReference.fromJson(Map<String, dynamic> json) {
  final tempApiVersionJson = json['apiVersion'];
  final tempBlockOwnerDeletionJson = json['blockOwnerDeletion'];
  final tempControllerJson = json['controller'];
  final tempKindJson = json['kind'];
  final tempNameJson = json['name'];
  final tempUidJson = json['uid'];

  final String tempApiVersion = tempApiVersionJson;
  final bool? tempBlockOwnerDeletion = tempBlockOwnerDeletionJson;
  final bool? tempController = tempControllerJson;
  final String tempKind = tempKindJson;
  final String tempName = tempNameJson;
  final String tempUid = tempUidJson;

  return OwnerReference(
    apiVersion: tempApiVersion,
    blockOwnerDeletion: tempBlockOwnerDeletion,
    controller: tempController,
    kind: tempKind,
    name: tempName,
    uid: tempUid,
  );
}