fromMap static method
override
Construct from Map.
Implementation
static ReportReason? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'reportReasonUnrelatedLocation':
return ReportReasonUnrelatedLocation.fromMap(_map);
case 'reportReasonSpam':
return ReportReasonSpam.fromMap(_map);
case 'reportReasonFake':
return ReportReasonFake.fromMap(_map);
case 'reportReasonViolence':
return ReportReasonViolence.fromMap(_map);
case 'reportReasonIllegalDrugs':
return ReportReasonIllegalDrugs.fromMap(_map);
case 'reportReasonChildAbuse':
return ReportReasonChildAbuse.fromMap(_map);
case 'reportReasonPersonalDetails':
return ReportReasonPersonalDetails.fromMap(_map);
case 'reportReasonPornography':
return ReportReasonPornography.fromMap(_map);
case 'reportReasonCustom':
return ReportReasonCustom.fromMap(_map);
case 'reportReasonCopyright':
return ReportReasonCopyright.fromMap(_map);
case null:
default:
return null;
}
}