fromMap static method

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

Construct from Map.

Implementation

static UpdateStoryStealthMode? 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 active_until_date = _map['active_until_date']! as int;
  var cooldown_until_date = _map['cooldown_until_date']! as int;
  return UpdateStoryStealthMode(
    extra: extra,
    clientId: clientId,
    active_until_date: active_until_date,
    cooldown_until_date: cooldown_until_date,
  );
}