fromMap static method

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

Construct from Map.

Implementation

static InputPassportElementErrorSourceTranslationFiles? 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 file_hashes = List<bytes>.from(
    (_map["file_hashes"] ?? []).map(
      (e) => e as bytes,
    ),
  );
  return InputPassportElementErrorSourceTranslationFiles(
    extra: extra,
    clientId: clientId,
    file_hashes: file_hashes,
  );
}