toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "invoice": invoice.toJson(),
    "title": title,
    "description": description,
    "photo_url": photoUrl,
    "photo_size": photoSize,
    "photo_width": photoWidth,
    "photo_height": photoHeight,
    "payload": payload,
    "provider_token": providerToken,
    "provider_data": providerData,
    "start_parameter": startParameter,
    "extended_media_content": extendedMediaContent.toJson(),
  };
}