SecretReference.fromJson constructor

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

Creates a SecretReference from JSON data.

Implementation

factory SecretReference.fromJson(Map<String, dynamic> json) {
  final tempNameJson = json['name'];
  final tempNamespaceJson = json['namespace'];

  final String? tempName = tempNameJson;
  final String? tempNamespace = tempNamespaceJson;

  return SecretReference(
    name: tempName,
    namespace: tempNamespace,
  );
}