fromMap static method
override
Construct from Map.
Implementation
static Usernames? 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_usernames = List<String>.from(
(_map["active_usernames"] ?? []).map(
(e) => e as String,
),
);
var disabled_usernames = List<String>.from(
(_map["disabled_usernames"] ?? []).map(
(e) => e as String,
),
);
var editable_username = _map['editable_username']! as String;
return Usernames(
extra: extra,
clientId: clientId,
active_usernames: active_usernames,
disabled_usernames: disabled_usernames,
editable_username: editable_username,
);
}