getMessageFromJsonWithChat<T extends BaseMessage> static method

T getMessageFromJsonWithChat<T extends BaseMessage>(
  1. Chat chat,
  2. Map<String, dynamic> json,
  3. {ChannelType? channelType,
  4. String? commandType}
)

Implementation

static T getMessageFromJsonWithChat<T extends BaseMessage>(
  Chat chat,
  Map<String, dynamic> json, {
  ChannelType? channelType,
  String? commandType,
}) {
  return _fromJson<T>(
    json,
    chat: chat,
    channelType: channelType,
    commandType: commandType,
  );
}