fromMap static method

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

Construct from Map.

Implementation

static ChatList? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'chatListMain':
      return ChatListMain.fromMap(_map);
    case 'chatListArchive':
      return ChatListArchive.fromMap(_map);
    case 'chatListFolder':
      return ChatListFolder.fromMap(_map);
    case null:
    default:
      return null;
  }
}