MessageSchedulingState.fromJson constructor
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();
}
}