MessageSendOptions.fromJson constructor
Parses a MessageSendOptions from TDLib JSON.
Implementation
factory MessageSendOptions.fromJson(Map<String, dynamic> json) =>
MessageSendOptions(
disableNotification: _readBool(json['disable_notification']),
fromBackground: _readBool(json['from_background']),
protectContent: _readBool(json['protect_content']),
updateOrderOfInstalledStickerSets:
_readBool(json['update_order_of_installed_sticker_sets']),
schedulingState: _readOptional(
json['scheduling_state'], MessageSchedulingState.fromJson),
sendingId: _readInt(json['sending_id']),
onlyPreview: _readBool(json['only_preview']),
);