fromJson static method

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

Implementation

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

  return BusinessMessage(
    message: Message.fromJson(tdMapFromJson(json['message'])),
    replyToMessage: Message.fromJson(tdMapFromJson(json['reply_to_message'])),
  );
}