InputBackground.fromJson constructor
a InputBackground return type can be :
Implementation
factory InputBackground.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case InputBackgroundLocal.CONSTRUCTOR:
return InputBackgroundLocal.fromJson(json);
case InputBackgroundRemote.CONSTRUCTOR:
return InputBackgroundRemote.fromJson(json);
case InputBackgroundPrevious.CONSTRUCTOR:
return InputBackgroundPrevious.fromJson(json);
default:
return const InputBackground();
}
}