Java 模型类上的ArrayList

Java 模型类上的ArrayList,java,android,model-view-controller,arraylist,model,Java,Android,Model View Controller,Arraylist,Model,我只是想知道是否有可能在模型类上创建列表或ArrayList { "Id": 30, "FirstName": "Lilly", "LastName": "Fowler", "KnownName": "Lills", "GenderId": 14, "DateOfBirth": "2009-03-18T00:00:00", "**ConditionList**": [{ "Child_ConditionId": 11

我只是想知道是否有可能在模型类上创建列表或ArrayList

    {
    "Id": 30,
    "FirstName": "Lilly",
    "LastName": "Fowler",
    "KnownName": "Lills",
    "GenderId": 14,
    "DateOfBirth": "2009-03-18T00:00:00",
    "**ConditionList**": [{
        "Child_ConditionId": 11,
        "Name": "Bee Sting Allergy",
        "Treatment": "phone me and softly put the bee sting cream on it and smooth it down.The cream will be in her bag",
        "DoctorName": null,
        "DoctorContact": null,
        "MedicationDescription": null
    }],
    "CreatedOn": "2015-05-30T19:44:13.2",
    "UpdatedOn": "2015-06-04T19:29:01.303",
    "ProfileImage": "http://mobile.aimy.co.nz:80/Media/mum_cropped_4fe98f04-f772-4ac0-ba51-d99fbd119e4b.jpeg"
}]
在下面的数据之后,正如您所看到的,有一个要传递给模型类的条件列表

    {
    "Id": 30,
    "FirstName": "Lilly",
    "LastName": "Fowler",
    "KnownName": "Lills",
    "GenderId": 14,
    "DateOfBirth": "2009-03-18T00:00:00",
    "**ConditionList**": [{
        "Child_ConditionId": 11,
        "Name": "Bee Sting Allergy",
        "Treatment": "phone me and softly put the bee sting cream on it and smooth it down.The cream will be in her bag",
        "DoctorName": null,
        "DoctorContact": null,
        "MedicationDescription": null
    }],
    "CreatedOn": "2015-05-30T19:44:13.2",
    "UpdatedOn": "2015-06-04T19:29:01.303",
    "ProfileImage": "http://mobile.aimy.co.nz:80/Media/mum_cropped_4fe98f04-f772-4ac0-ba51-d99fbd119e4b.jpeg"
}]
@SerializeName(“**条件列表**”)私有列表条件列表;
由于不允许在Java变量中使用此类符号,因此应使用带有
Gson的序列化名称

获取错误应作为字符串传递。但任何东西都可以带走,谢谢@序列化名称(“条件列表”)私有列表条件列表;