GetListOfIssuersInDetailResponse.fromJson constructor

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

Implementation

factory GetListOfIssuersInDetailResponse.fromJson(Map<String, dynamic> json) {
  return GetListOfIssuersInDetailResponse(
    count: json['count'] ?? 0,
    currentPage: json['current_page'] ?? 1,
    perPage: json['per_page'] ?? 10,
    results: (json['results'] as List<dynamic>?)
        ?.map((issuer) => IssuerDetail.fromJson(issuer))
        .toList() ?? [],
    totalPages: json['total_pages'] ?? 0,
  );
}