Subject.fromJson constructor
Creates a Subject from JSON data.
Implementation
Subject.fromJson(Map<String, dynamic> json)
: this(
group: json['group'] != null
? GroupSubject.fromJson(json['group'])
: null,
kind: json['kind'],
serviceAccount: json['serviceAccount'] != null
? ServiceAccountSubject.fromJson(json['serviceAccount'])
: null,
user:
json['user'] != null ? UserSubject.fromJson(json['user']) : null,
);