TypedLocalObjectReference.fromJson constructor

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

Creates a TypedLocalObjectReference from JSON data.

Implementation

factory TypedLocalObjectReference.fromJson(Map<String, dynamic> json) {
  final tempApiGroupJson = json['apiGroup'];
  final tempKindJson = json['kind'];
  final tempNameJson = json['name'];

  final String? tempApiGroup = tempApiGroupJson;
  final String tempKind = tempKindJson;
  final String tempName = tempNameJson;

  return TypedLocalObjectReference(
    apiGroup: tempApiGroup,
    kind: tempKind,
    name: tempName,
  );
}