ApiResponse.fromJson constructor

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

Implementation

factory ApiResponse.fromJson(Map<String, dynamic> json) {
  return ApiResponse(
    created: json['created'] as int,
    data: (json['data'] as List).map((e) => ApiResponseData.fromJson(e)).toList(),
  );
}