fromJson method
Implementation
@override
UModerationGetRecordsRecords fromJson(Map<String, dynamic> json) {
try {
if (RecordViewDetail.validate(json)) {
return UModerationGetRecordsRecords.recordViewDetail(
data: const RecordViewDetailConverter().fromJson(json),
);
}
if (RecordViewNotFound.validate(json)) {
return UModerationGetRecordsRecords.recordViewNotFound(
data: const RecordViewNotFoundConverter().fromJson(json),
);
}
return UModerationGetRecordsRecords.unknown(data: json);
} catch (_) {
return UModerationGetRecordsRecords.unknown(data: json);
}
}