toString method

  1. @override
String toString()
override

Returns the ChargeObject fields as a String object

Implementation

@override
String toString() {
  Map collection = {
    'metaData': metaData,
    'name': name,
    'isSuccessful': isSuccessful,
    'error': error.toString(),
    'description': description,
    'pricingType': pricingType,
    'addresses': addresses,
    'code': code,
    'createdAt': createdAt,
    'exchangeRate': exchangeRate,
    'expiresAt': expiresAt,
    'url': url,
    'id': id,
    'payments': payments,
    'supportEmail': supportEmail,
    'timeline': timeline
  };
  return collection.toString();
}