BoundObjectReference.fromJson constructor

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

Creates a BoundObjectReference from JSON data.

Implementation

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

  final String? tempApiVersion = tempApiVersionJson;
  final String? tempKind = tempKindJson;
  final String? tempName = tempNameJson;
  final String? tempUid = tempUidJson;

  return BoundObjectReference(
    apiVersion: tempApiVersion,
    kind: tempKind,
    name: tempName,
    uid: tempUid,
  );
}