Duration
@JsonClass(generateAdapter = true )
Represents a duration of time defined by a start timestamp and an end timestamp. Example:
{
"startTimestamp": "2022-02-02T10:41:08.315Z",
"endTimestamp": "2022-02-02T10:45:09.962Z"
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(@Json(name = "startTimestamp" ) startTimestamp: ZonedDateTime, @Json(name = "endTimestamp" ) endTimestamp: ZonedDateTime)