-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add PID in identity category #2562
- Loading branch information
Showing
6 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,5 @@ enum CredentialSubjectType { | |
legalPersonalCredential, | ||
identityCredential, | ||
eudiPid, | ||
pid, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/dashboard/home/tab_bar/credentials/models/pid/pid_subject_model.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:altme/app/app.dart'; | ||
import 'package:altme/dashboard/home/tab_bar/credentials/models/credential_subject/credential_subject_model.dart'; | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'pid_subject_model.g.dart'; | ||
|
||
@JsonSerializable(explicitToJson: true) | ||
class PidSubjectModel extends CredentialSubjectModel { | ||
PidSubjectModel({ | ||
super.id, | ||
super.type, | ||
super.issuedBy, | ||
}) : super( | ||
credentialSubjectType: CredentialSubjectType.pid, | ||
credentialCategory: CredentialCategory.identityCards, | ||
); | ||
|
||
factory PidSubjectModel.fromJson(Map<String, dynamic> json) => | ||
_$PidSubjectModelFromJson(json); | ||
|
||
@override | ||
Map<String, dynamic> toJson() => _$PidSubjectModelToJson(this); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters