RoleRef.fromJson constructor
Creates a RoleRef from JSON data.
Implementation
factory RoleRef.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 RoleRef(
apiGroup: tempApiGroup,
kind: tempKind,
name: tempName,
);
}