fromMap static method

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

Construct from Map.

Implementation

static InputFileGenerated? 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 original_path = _map['original_path']! as String;
  var conversion = _map['conversion']! as String;
  var expected_size = _map['expected_size']! as int;
  return InputFileGenerated(
    extra: extra,
    clientId: clientId,
    original_path: original_path,
    conversion: conversion,
    expected_size: expected_size,
  );
}