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);
default:
return const InputBackground();
}
}