UserCertificateModel class abstract
- Available extensions
- Annotations
-
- @Freezed(fromJson: false, toJson: false)
Constructors
-
UserCertificateModel({required String id, required String certificationId, String? certificationName, required String userId, String? userLabel, required DateTime issuedAt, DateTime? expiresAt, required String status, required Map<
String, dynamic> evidence}) -
constfactory
-
UserCertificateModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- certificationId → String
-
no setterinherited
- certificationName → String?
-
no setterinherited
-
copyWith
→ $UserCertificateModelCopyWith<
UserCertificateModel> -
Create a copy of UserCertificateModel
with the given fields replaced by the non-null parameter values.
no setterinherited
-
evidence
→ Map<
String, dynamic> -
no setterinherited
- expiresAt → DateTime?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- issuedAt → DateTime
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
no setterinherited
- userId → String
-
no setterinherited
- userLabel → String?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_UserCertificateModel value)) → TResult -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_UserCertificateModel value)?) → TResult? -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_UserCertificateModel value)?, {required TResult orElse()}) → TResult -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String certificationId, String? certificationName, String userId, String? userLabel, DateTime issuedAt, DateTime? expiresAt, String status, Map< String, dynamic> evidence)?, {required TResult orElse()}) → TResult -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → UserCertificate -
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String certificationId, String? certificationName, String userId, String? userLabel, DateTime issuedAt, DateTime? expiresAt, String status, Map< String, dynamic> evidence)) → TResult -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String certificationId, String? certificationName, String userId, String? userLabel, DateTime issuedAt, DateTime? expiresAt, String status, Map< String, dynamic> evidence)?) → TResult? -
Available on UserCertificateModel, provided by the UserCertificateModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited