fromJson static method

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

Implementation

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

  return ChatBoostLinkInfo(
    isPublic: (json['is_public'] as bool?) ?? false,
    chatId: (json['chat_id'] as int?) ?? 0,
  );
}