toJson method

  1. @override
dynamic toJson(
  1. PaymentMethodRef<T> object
)

Implementation

@override
dynamic toJson(PaymentMethodRef<T> object) {
  return object.when(
    id: (id) => id,
    details: (details) => details.toJson(),
    none: () => null,
  );
}