fromJson static method
Inherited by: InputPaidMediaTypePhoto InputPaidMediaTypeVideo
Implementation
static InputPaidMediaType? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case InputPaidMediaTypePhoto.constructor:
return InputPaidMediaTypePhoto.fromJson(json);
case InputPaidMediaTypeVideo.constructor:
return InputPaidMediaTypeVideo.fromJson(json);
default:
return null;
}
}