ListBonusPaymentsResponse.fromJson constructor

ListBonusPaymentsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListBonusPaymentsResponse.fromJson(Map<String, dynamic> json) {
  return ListBonusPaymentsResponse(
    bonusPayments: (json['BonusPayments'] as List?)
        ?.whereNotNull()
        .map((e) => BonusPayment.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    numResults: json['NumResults'] as int?,
  );
}