EnumerationValue.fromJson constructor

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

Implementation

factory EnumerationValue.fromJson(Map<String, dynamic> json) {
  return EnumerationValue(
    value: json['value'] as String,
    synonyms: (json['synonyms'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}