MessageSchedulingState.fromJson constructor

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

a MessageSchedulingState return type can be :

Implementation

factory MessageSchedulingState.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case MessageSchedulingStateSendAtDate.CONSTRUCTOR:
      return MessageSchedulingStateSendAtDate.fromJson(json);
    case MessageSchedulingStateSendWhenOnline.CONSTRUCTOR:
      return MessageSchedulingStateSendWhenOnline.fromJson(json);
    default:
      return const MessageSchedulingState();
  }
}