fromMap static method

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

Construct from Map.

Implementation

static WriteGeneratedFilePart? 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 offset = _map['offset']! as int;
  var data = _map['data']! as bytes;
  return WriteGeneratedFilePart(
    extra: extra,
    clientId: clientId,
    generation_id: generation_id,
    offset: offset,
    data: data,
  );
}