ApiResponse<T>.fromJson constructor Null safety

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

Implementation

factory ApiResponse.fromJson(Map<String, dynamic> json) => ApiResponse(
      success: json["success"],
      message: json["message"],
      data: json["data"],
    );