fromMap static method

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

Construct from Map.

Implementation

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