List<GrantType> gtypes = new ArrayList<GrantType>();
for (JGrantType jgt : grantTypes) {
gtypes.add(jgt.getAuthorization_code().toSwaggerModel());
gtypes.add(jgt.getImplicit().toSwaggerModel());
}
return new OAuth(
new ListConverter<JAuthorizationScope, AuthorizationScope>(scopes).convert(),
Utils.toScalaImmutableList(gtypes));
}