toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'assignGooglePlayTransaction',
    if (extra != null) '@extra': extra,
    'package_name': package_name,
    'store_product_id': store_product_id,
    'purchase_token': purchase_token,
    'purpose': purpose
  };
}