убран лишний код
This commit is contained in:
@@ -7,13 +7,7 @@ package ru.dmitriymx.astralcheckreport.objects;
|
||||
import java.util.List;
|
||||
|
||||
public class Organization {
|
||||
int id;
|
||||
public String inn, kpp;
|
||||
public List<Product> products;
|
||||
public String companyGroupName;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Organization@{id:" + id + ", inn:\"" + inn + "\", kpp:\"" + kpp + "\"}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ public class OrganizationDeserialize implements JsonDeserializer<Organization> {
|
||||
Organization organization = new Organization();
|
||||
JsonObject jsonObject = jsonElement.getAsJsonObject();
|
||||
|
||||
organization.id = jsonObject.get("id").getAsInt();
|
||||
organization.inn = jsonObject.get("inn").getAsString();
|
||||
organization.kpp = jsonObject.get("kpp").getAsString();
|
||||
organization.companyGroupName = jsonObject.get("companyGroupName").getAsString();
|
||||
|
||||
Reference in New Issue
Block a user