PaymentListAllResponse.fromMap constructor

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

Implementation

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