fromMap static method

LanguagePackStringValuePluralized? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static LanguagePackStringValuePluralized? fromMap(
    Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var zero_value = _map['zero_value']! as String;
  var one_value = _map['one_value']! as String;
  var two_value = _map['two_value']! as String;
  var few_value = _map['few_value']! as String;
  var many_value = _map['many_value']! as String;
  var other_value = _map['other_value']! as String;
  return LanguagePackStringValuePluralized(
    extra: extra,
    clientId: clientId,
    zero_value: zero_value,
    one_value: one_value,
    two_value: two_value,
    few_value: few_value,
    many_value: many_value,
    other_value: other_value,
  );
}