toJson method

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

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': '049ee584',
    '\$name': 'Invoice',
    'flags': flags,
    'test': test,
    'nameRequested': nameRequested,
    'phoneRequested': phoneRequested,
    'emailRequested': emailRequested,
    'shippingAddressRequested': shippingAddressRequested,
    'flexible': flexible,
    'phoneToProvider': phoneToProvider,
    'emailToProvider': emailToProvider,
    'recurring': recurring,
    'currency': currency,
    'prices': prices,
    'maxTipAmount': maxTipAmount,
    'suggestedTipAmounts': suggestedTipAmounts,
    'termsUrl': termsUrl,
    'subscriptionPeriod': subscriptionPeriod,
  };

  // Finished toJson.
  return returnValue;
}