fromJson static method

ChatJoinResultSuccess? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static ChatJoinResultSuccess? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatJoinResultSuccess(chatId: (json['chat_id'] as int?) ?? 0);
}