InputFile.fromJson constructor
a InputFile return type can be :
Implementation
factory InputFile.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case InputFileId.CONSTRUCTOR:
return InputFileId.fromJson(json);
case InputFileRemote.CONSTRUCTOR:
return InputFileRemote.fromJson(json);
case InputFileLocal.CONSTRUCTOR:
return InputFileLocal.fromJson(json);
case InputFileGenerated.CONSTRUCTOR:
return InputFileGenerated.fromJson(json);
default:
return const InputFile();
}
}