MessageSendOptions.fromJson constructor

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

Parse from a json

Implementation

factory MessageSendOptions.fromJson(Map<String, dynamic> json) =>
    MessageSendOptions(
      disableNotification: json['disable_notification'],
      fromBackground: json['from_background'],
      protectContent: json['protect_content'],
      updateOrderOfInstalledStickerSets:
          json['update_order_of_installed_sticker_sets'],
      schedulingState: json['scheduling_state'] == null
          ? null
          : MessageSchedulingState.fromJson(json['scheduling_state']),
      sendingId: json['sending_id'],
    );