InputBackground.fromJson constructor

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

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();
  }
}