factory ApiError.fromJson(Map<String, dynamic> json) => ApiError( message: parseJsonString(json['message']), code: parseJsonInt(json['code']), );