toJson method

Map<String, dynamic> toJson()

Generates a JSON object from this object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'request_id': requestId,
    'user_is_bot': userIsBot,
    'user_is_premium': userIsPremium,
    'max_quantity': maxQuantity,
    'request_name': requestName,
    'request_username': requestUsername,
    'request_photo': requestPhoto,
  }..removeWhere(_nullFilter);
}