ViewBillingResponse.fromJson constructor

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

Implementation

factory ViewBillingResponse.fromJson(Map<String, dynamic> json) {
  return ViewBillingResponse(
    billingRecords: (json['BillingRecords'] as List?)
        ?.whereNotNull()
        .map((e) => BillingRecord.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageMarker: json['NextPageMarker'] as String?,
  );
}