PaymentDataResponse.fromMap constructor

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

Implementation

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