PaymentListResponse.fromMap constructor

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

Implementation

factory PaymentListResponse.fromMap(Map<String, dynamic> map) {
  return PaymentListResponse(
    hasMore: map['has_more'] ?? false,
    data: List<PaymentListAllResponse>.from(
      map['data']?.map(PaymentListAllResponse.fromMap) ?? const [],
    ),
  );
}