ObjectReference.fromJson constructor
Creates a ObjectReference from JSON data.
Implementation
factory ObjectReference.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempFieldPathJson = json['fieldPath'];
final tempKindJson = json['kind'];
final tempNameJson = json['name'];
final tempNamespaceJson = json['namespace'];
final tempResourceVersionJson = json['resourceVersion'];
final tempUidJson = json['uid'];
final String? tempApiVersion = tempApiVersionJson;
final String? tempFieldPath = tempFieldPathJson;
final String? tempKind = tempKindJson;
final String? tempName = tempNameJson;
final String? tempNamespace = tempNamespaceJson;
final String? tempResourceVersion = tempResourceVersionJson;
final String? tempUid = tempUidJson;
return ObjectReference(
apiVersion: tempApiVersion,
fieldPath: tempFieldPath,
kind: tempKind,
name: tempName,
namespace: tempNamespace,
resourceVersion: tempResourceVersion,
uid: tempUid,
);
}