HumanName class
- Annotations
-
- @freezed
Constructors
-
HumanName({HumanNameUse? use, @JsonKey(name: '_use') Element? useElement, String? text, @JsonKey(name: '_text') Element? textElement, String? family, @JsonKey(name: '_family') Element? familyElement, List<
String> ? given, @JsonKey(name: '_given') List<Element?> ? givenElement, List<String> ? prefix, @JsonKey(name: '_prefix') List<Element?> ? prefixElement, List<String> ? suffix, @JsonKey(name: '_suffix') List<Element?> ? suffixElement, Period? period}) -
constfactory
-
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
- family → String?
-
no setterinherited
- familyElement → Element?
-
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
→ List<
Element?> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffix
→ List<
String> ? -
no setterinherited
-
suffixElement
→ List<
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(
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