MessageCopyOptions.fromJson constructor

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

Parse from a json

Implementation

factory MessageCopyOptions.fromJson(Map<String, dynamic> json) => MessageCopyOptions(
  sendCopy: json['send_copy'],
  replaceCaption: json['replace_caption'],
  newCaption: json['new_caption'] == null ? null : FormattedText.fromJson(json['new_caption']),
);