Subject.fromJson constructor
Creates a Subject from JSON data.
Implementation
factory Subject.fromJson(Map<String, dynamic> json) {
final tempApiGroupJson = json['apiGroup'];
final tempKindJson = json['kind'];
final tempNameJson = json['name'];
final tempNamespaceJson = json['namespace'];
final String? tempApiGroup = tempApiGroupJson;
final String tempKind = tempKindJson;
final String tempName = tempNameJson;
final String? tempNamespace = tempNamespaceJson;
return Subject(
apiGroup: tempApiGroup,
kind: tempKind,
name: tempName,
namespace: tempNamespace,
);
}