fromMap static method

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

Construct from Map.

Implementation

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