IngressClassParametersReference.fromJson constructor

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

Creates a IngressClassParametersReference from JSON data.

Implementation

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

  final String? tempApiGroup = tempApiGroupJson;
  final String tempKind = tempKindJson;
  final String tempName = tempNameJson;
  final String? tempNamespace = tempNamespaceJson;
  final String? tempScope = tempScopeJson;

  return IngressClassParametersReference(
    apiGroup: tempApiGroup,
    kind: tempKind,
    name: tempName,
    namespace: tempNamespace,
    scope: tempScope,
  );
}