fromJson static method
Implementation
static ReportOption? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ReportOption(
id: (json['id'] as String?) ?? '',
text: (json['text'] as String?) ?? '',
);
}