CreatePaymentResponse.fromMap constructor

CreatePaymentResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory CreatePaymentResponse.fromMap(Map<String, dynamic> map) {
  return CreatePaymentResponse(
    id: map['id'],
    source:
        map['source'] != null ? SourceResult.fromMap(map['source']) : null,
    type: map['type'],
  );
}