HumanName class

Annotations
  • @freezed

Constructors

HumanName({@JsonKey(name: 'id') FhirId? fhirId, @JsonKey(name: 'extension') List<FhirExtension>? extension_, @JsonKey(name: 'fhir_comments') List<String>? fhirComments, @JsonKey(unknownEnumValue: HumanNameUse.unknown) HumanNameUse? use, @JsonKey(name: '_use') Element? useElement, String? text, @JsonKey(name: '_text') Element? textElement, List<String>? family, @JsonKey(name: '_family') List<Element?>? familyElement, List<String>? given, @JsonKey(name: '_given') List<Element?>? givenElement, List<String>? prefix, @JsonKey(name: '_prefix') Element? prefixElement, List<String>? suffix, @JsonKey(name: '_suffix') Element? suffixElement, Period? period})
const
factory
HumanName.fromJson(Map<String, dynamic> json)
Factory constructor, accepts Map<String, dynamic> as an argument
factory
HumanName.fromJsonString(String source)
Acts like a constructor, returns a HumanName, accepts a String as an argument, mostly because I got tired of typing it out
factory
HumanName.fromYaml(dynamic yaml)
Factory constructor, accepts a String in YAML format as an argument
factory

Properties

copyWith → $HumanNameCopyWith<HumanName>
no setterinherited
extension_ List<FhirExtension>?
no setterinherited
family List<String>?
no setterinherited
familyElement List<Element?>?
no setterinherited
fhirComments List<String>?
no setterinherited
fhirId FhirId?
no setterinherited
given List<String>?
no setterinherited
givenElement List<Element?>?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
period Period?
no setterinherited
prefix List<String>?
no setterinherited
prefixElement Element?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix List<String>?
no setterinherited
suffixElement Element?
no setterinherited
text String?
no setterinherited
textElement Element?
no setterinherited
use HumanNameUse?
no setterinherited
useElement 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
updateFamily(List<String> family) HumanName
updateGiven(List<String> given) HumanName
updatePeriod(Period period) HumanName
updatePrefix(List<String> prefix) HumanName
updateSuffix(List<String> suffix) HumanName
updateText(String text) HumanName
updateUse(HumanNameUse use) HumanName

Operators

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