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