fromJson static method

ReportOption? fromJson(
  1. Map<String, dynamic>? json
)

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?) ?? '',
  );
}