IResponse.fromJson constructor

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

Creates an instance from a JSON map

Implementation

factory IResponse.fromJson(Map<String, dynamic> json) {
  final response200 = json['200'] ?? json['201'] ?? json['202'];
  return IResponse(
    response200: response200 != null
        ? ResponseDetails.fromJson(response200 as Map<String, dynamic>)
        : null,
  );
}