-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from Hari-egov/ISNE-262
INSE-262
- Loading branch information
Showing
19 changed files
with
363 additions
and
133 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
Binary file not shown.
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
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,37 @@ | ||
class LinkResponse { | ||
final List<Links> links; | ||
|
||
const LinkResponse({ | ||
required this.links, | ||
}); | ||
|
||
factory LinkResponse.fromJson(Map<String, dynamic> json) => LinkResponse( | ||
links: (json['links'] as List<dynamic>) | ||
.map((item) => Links.fromJson(item as Map<String, dynamic>)) | ||
.toList(), | ||
); | ||
} | ||
|
||
class Links { | ||
final String tenantID; | ||
final String dashboardURL; | ||
final int id; | ||
final bool isEnabled; | ||
final List<String> roles; | ||
|
||
const Links({ | ||
required this.tenantID, | ||
required this.dashboardURL, | ||
required this.id, | ||
required this.isEnabled, | ||
required this.roles, | ||
}); | ||
|
||
factory Links.fromJson(Map<String, dynamic> json) => Links( | ||
tenantID: json['tenantID'] as String, | ||
dashboardURL: json['dashboardURL'] as String, | ||
id: json['id'] as int, | ||
isEnabled: json['isEnabled'] as bool, | ||
roles: (json['roles'] as List<dynamic>).cast<String>(), | ||
); | ||
} |
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
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
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
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
Oops, something went wrong.