toJson method

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

Implementation

@override
Map<String, Object?> toJson() => {
      if (customData != null) "custom_data": encodeValue(customData),
      if (active != null) "active": encodeValue(active),
      if (archived != null) "archived": encodeValue(archived),
      if (owner != null) "owner": encodeValue(owner),
      "payment_method_id": encodeValue(paymentMethodId),
    };