Quantity class

Annotations
  • @freezed

Constructors

Quantity({FhirDecimal? value, @JsonKey(name: '_value') Element? valueElement, QuantityComparator? comparator, @JsonKey(name: '_comparator') Element? comparatorElement, String? unit, @JsonKey(name: '_unit') Element? unitElement, String? system, @JsonKey(name: '_system') Element? systemElement, FhirCode? code, @JsonKey(name: '_code') Element? codeElement})
const
factory
Quantity.fromJson(Map<String, dynamic> json)
Factory constructor, accepts Map<String, dynamic> as an argument
factory
Quantity.fromJsonString(String source)
Acts like a constructor, returns a Quantity, accepts a String as an argument, mostly because I got tired of typing it out
factory
Quantity.fromYaml(dynamic yaml)
Factory constructor, accepts a String in YAML format as an argument
factory

Properties

code FhirCode?
no setterinherited
codeElement Element?
no setterinherited
comparator QuantityComparator?
no setterinherited
comparatorElement Element?
no setterinherited
copyWith → $QuantityCopyWith<Quantity>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system String?
no setterinherited
systemElement Element?
no setterinherited
unit String?
no setterinherited
unitElement Element?
no setterinherited
value FhirDecimal?
no setterinherited
valueElement Element?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toJsonString() String
Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
toString() String
A string representation of this object.
inherited
toYaml() String
Produces a Yaml formatted String version of the object

Operators

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