ContactPreview class

Contact preview.

Annotations
  • @freezed

Constructors

ContactPreview({@JsonKey(name: '_error') String? error, @JsonKey(name: 'phone') required String phone, @JsonKey(name: 'given_name') required String givenName, @JsonKey(name: 'family_name') required String familyName, @JsonKey(name: 'patronymic') String? patronymic, @JsonKey(name: 'role') required String role, @JsonKey(name: 'section') required String section})
const
factory
ContactPreview.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $ContactPreviewCopyWith<ContactPreview>
no setterinherited
error String?
.
no setterinherited
familyName String
.
no setterinherited
givenName String
.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
patronymic String?
.
no setterinherited
phone String
.
no setterinherited
role String
.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
section String
.
no setterinherited

Methods

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

Operators

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