fromJson method
Implementation
@override
UAdminGetSubjectStatusSubject fromJson(Map<String, dynamic> json) {
try {
if (RepoRef.validate(json)) {
return UAdminGetSubjectStatusSubject.repoRef(
data: const RepoRefConverter().fromJson(json),
);
}
if (RepoStrongRef.validate(json)) {
return UAdminGetSubjectStatusSubject.repoStrongRef(
data: const RepoStrongRefConverter().fromJson(json),
);
}
if (RepoBlobRef.validate(json)) {
return UAdminGetSubjectStatusSubject.repoBlobRef(
data: const RepoBlobRefConverter().fromJson(json),
);
}
return UAdminGetSubjectStatusSubject.unknown(data: json);
} catch (_) {
return UAdminGetSubjectStatusSubject.unknown(data: json);
}
}