ApiResponse.fromJson constructor

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

Implementation

factory ApiResponse.fromJson(Map<String, dynamic> json) {
  return ApiResponse(
    code: json['code'],
    title: json['title'],
    body: json['body'],
    url: json['url'],
  );
}