Skip to content

Keep original field name  #1578

@ashoksri0

Description

@ashoksri0

while i'm converting json to java then _ characeter are converted as camelcase,i need exactly what are there in json attribute key
{ "id": 850703190, "product_id": 632910392, "position": 1, "created_at": "2020-10-14T20:01:12-04:00", "updated_at": "2020-10-14T20:01:12-04:00", "alt": null }

actual code

`
package io.quicktype;

import java.time.OffsetDateTime;

@lombok.Data
public class DeliveryLineUpSchedulerInputBean {
private long id;
private long productId;
private long position;
private OffsetDateTime createdAt;
private OffsetDateTime updatedAt;
private Object alt;
}
`

what i want
`
package io.quicktype;

import java.time.OffsetDateTime;

@lombok.Data
public class DeliveryLineUpSchedulerInputBean {
private long id;
private long product_id;
private long position;
private OffsetDateTime created_at;
private OffsetDateTime updated_at;
private Object alt;
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions