getValue method
Converts InputPaidMedia to a Map for JSON encoding
Implementation
@override
Map<String, dynamic> getValue([String? field, String? thumb]) {
return {
'type': type.value,
'media': media.getValue(field),
};
}
Converts InputPaidMedia to a Map for JSON encoding
@override
Map<String, dynamic> getValue([String? field, String? thumb]) {
return {
'type': type.value,
'media': media.getValue(field),
};
}