fromMap static method

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

Construct from Map.

Implementation

static SetName? 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 first_name = _map['first_name']! as String;
  var last_name = _map['last_name']! as String;
  return SetName(
    extra: extra,
    clientId: clientId,
    first_name: first_name,
    last_name: last_name,
  );
}