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'],
  schedulingState: json['scheduling_state'] == null ? null : MessageSchedulingState.fromJson(json['scheduling_state']),
);