fromJson static method

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

Implementation

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

  return SessionTypeConnectedBot(
    botUserId: (json['bot_user_id'] as int?) ?? 0,
  );
}