factory InvalidInputException.fromJson(Map<String, dynamic> json) { return InvalidInputException( code: json['code'] as int?, message: json['message'] as String?, ); }