Name class

A name.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Name({String? prefix, String? givenName, String? surname, String? middleName, String? suffix, String? fullName})
const
Name.fromJson(Map<String, dynamic> json)
factory

Properties

fullName String?
When the party is a person, the party's full name.
final
givenName String?
When the party is a person, the party's given, or first, name.
final
hashCode int
The hash code for this object.
no setterinherited
middleName String?
When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
final
prefix String?
The prefix, or title, to the party's name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String?
The suffix for the party's name.
final
surname String?
When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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