fromJson static method

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

Implementation

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

  return InputMessageForwarded(
    fromChatId: (json['from_chat_id'] as int?) ?? 0,
    messageId: (json['message_id'] as int?) ?? 0,
    inGameShare: (json['in_game_share'] as bool?) ?? false,
    replaceVideoStartTimestamp:
        (json['replace_video_start_timestamp'] as bool?) ?? false,
    newVideoStartTimestamp: (json['new_video_start_timestamp'] as int?) ?? 0,
    copyOptions: MessageCopyOptions.fromJson(
      tdMapFromJson(json['copy_options']),
    ),
  );
}