Skip to content

Commit

Permalink
feat: Additional factory method.
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jun 21, 2021
1 parent 3b71569 commit 12f2cb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/foundation/identity/did/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public static Service fromJson(String json) {
return new Service(readJson(json));
}

public static Service fromMap(Map<String, Object> map) {
return new Service(map);
}

/*
* Adding, getting, and removing the JSON-LD object
*/
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/foundation/identity/did/VerificationMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public static VerificationMethod fromJson(String json) {
return new VerificationMethod(readJson(json));
}

public static VerificationMethod fromMap(Map<String, Object> map) {
return new VerificationMethod(map);
}

/*
* Adding, getting, and removing the JSON-LD object
*/
Expand Down

0 comments on commit 12f2cb5

Please sign in to comment.