fromJson static method

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

Implementation

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

  return BusinessChatLinkInfo(
    chatId: (json['chat_id'] as int?) ?? 0,
    text: FormattedText.fromJson(tdMapFromJson(json['text'])),
  );
}