fromMap static method
override
Construct from Map.
Implementation
static ChatActionBar? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'chatActionBarInviteMembers':
return ChatActionBarInviteMembers.fromMap(_map);
case 'chatActionBarReportSpam':
return ChatActionBarReportSpam.fromMap(_map);
case 'chatActionBarSharePhoneNumber':
return ChatActionBarSharePhoneNumber.fromMap(_map);
case 'chatActionBarReportAddBlock':
return ChatActionBarReportAddBlock.fromMap(_map);
case 'chatActionBarReportUnrelatedLocation':
return ChatActionBarReportUnrelatedLocation.fromMap(_map);
case 'chatActionBarJoinRequest':
return ChatActionBarJoinRequest.fromMap(_map);
case 'chatActionBarAddContact':
return ChatActionBarAddContact.fromMap(_map);
case null:
default:
return null;
}
}