ClientProfile class abstract

Available extensions
Annotations
  • @Freezed(makeCollectionsUnmodifiable: false)

Constructors

ClientProfile.new({@Default('') @JsonKey(name: 'id') String id, @Default(false) @JsonKey(name: 'active') bool active, @Default(false) @JsonKey(name: 'clientCounselled') bool counselled, @Default(<ClientType>[]) @JsonKey(name: 'clientTypes') List<ClientType> clientTypes, @Default('') @JsonKey(name: 'treatmentEnrollmentDate') String treatmentEnrollmentDate, @Default('') @JsonKey(name: 'treatmentBuddy') String treatmentBuddy, @JsonKey(name: 'user') User? user, @Default('') @JsonKey(name: 'chvUserID') String chvUserID, @Default('') @JsonKey(name: 'chvUserName') String chvUserName, @Default(<Identifier>[]) @JsonKey(name: 'identifiers') List<Identifier> identifiers, @Default('') @JsonKey(name: 'fhirPatientID') String fhirPatientID, @Default('') @JsonKey(name: 'healthRecordID') String healthRecordID, @Default('') @JsonKey(name: 'caregiverID') String caregiverID, @JsonKey(name: 'defaultFacility') Facility? defaultFacility, @JsonKey(name: 'program') Program? program})
factory
ClientProfile.fromJson(Map<String, dynamic> json)
factory
ClientProfile.initial()
factory

Properties

active bool
no setterinherited
caregiverID String
no setterinherited
chvUserID String
no setterinherited
chvUserName String
no setterinherited
clientTypes List<ClientType>
no setterinherited
copyWith → $ClientProfileCopyWith<ClientProfile>
Create a copy of ClientProfile with the given fields replaced by the non-null parameter values.
no setterinherited
counselled bool
no setterinherited
defaultFacility Facility?
no setterinherited
fhirPatientID String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
healthRecordID String
no setterinherited
id String
no setterinherited
identifiers List<Identifier>
no setterinherited
program Program?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
treatmentBuddy String
no setterinherited
treatmentEnrollmentDate String
no setterinherited
user User?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ClientProfile value)) → TResult

Available on ClientProfile, provided by the ClientProfilePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ClientProfile value)?) → TResult?

Available on ClientProfile, provided by the ClientProfilePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ClientProfile value)?, {required TResult orElse()}) → TResult

Available on ClientProfile, provided by the ClientProfilePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, bool active, bool counselled, List<ClientType> clientTypes, String treatmentEnrollmentDate, String treatmentBuddy, User? user, String chvUserID, String chvUserName, List<Identifier> identifiers, String fhirPatientID, String healthRecordID, String caregiverID, Facility? defaultFacility, Program? program)?, {required TResult orElse()}) → TResult

Available on ClientProfile, provided by the ClientProfilePatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ClientProfile to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, bool active, bool counselled, List<ClientType> clientTypes, String treatmentEnrollmentDate, String treatmentBuddy, User? user, String chvUserID, String chvUserName, List<Identifier> identifiers, String fhirPatientID, String healthRecordID, String caregiverID, Facility? defaultFacility, Program? program)) → TResult

Available on ClientProfile, provided by the ClientProfilePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, bool active, bool counselled, List<ClientType> clientTypes, String treatmentEnrollmentDate, String treatmentBuddy, User? user, String chvUserID, String chvUserName, List<Identifier> identifiers, String fhirPatientID, String healthRecordID, String caregiverID, Facility? defaultFacility, Program? program)?) → TResult?

Available on ClientProfile, provided by the ClientProfilePatterns extension

A variant of when that fallback to returning null

Operators

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