Length class

The length of time the encounter lasted (less time absent).

Constructors

Length({num? value, String? unit, Uri? system, String? code})
Constructs a new Length with optional value, unit, system, and code.
Length.fromJson(JsonObject _json)
Constructs a new Length instance from the provided JSON object.

Properties

code String?
A computer processable form of the unit in some unit representation system.
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Length instance to a JSON object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system Uri?
The system that defines the coded unit form.
no setter
unit String?
The unit representation of the length.
no setter
value num?
The value of the length.
no setter

Methods

copyWith({num? value, String? unit, Uri? system, String? code}) Length
Creates a copy of the Length instance and allows for non-destructive mutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

codeField → const FieldDefinition<String>
Field definition for code
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Length
systemField → const FieldDefinition<Uri>
Field definition for system
unitField → const FieldDefinition<String>
Field definition for unit
valueField → const FieldDefinition<num>
Field definition for value