fromJson static method

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

Implementation

static LanguagePackStringValuePluralized? fromJson(
  Map<String, dynamic>? json,
) {
  if (json == null) {
    return null;
  }

  return LanguagePackStringValuePluralized(
    zeroValue: (json['zero_value'] as String?) ?? '',
    oneValue: (json['one_value'] as String?) ?? '',
    twoValue: (json['two_value'] as String?) ?? '',
    fewValue: (json['few_value'] as String?) ?? '',
    manyValue: (json['many_value'] as String?) ?? '',
    otherValue: (json['other_value'] as String?) ?? '',
  );
}