-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Display Additional Organization and Address Data (#2478)
* Feature: Display Additional Organization and Address Data * fixing formatting * adding translations * fixing error * fixing linting error * fixing custom linting error * fixing custom linting error * fixing tests * fixing tests * minor change * fixing coverage * fixing coverage * making required changes
- Loading branch information
Showing
26 changed files
with
1,026 additions
and
48 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,52 @@ | ||
/// Model for the address of an organisation. | ||
class Address { | ||
/// Constructs an Address object. | ||
Address({ | ||
this.city, | ||
this.countryCode, | ||
this.dependentLocality, | ||
this.line1, | ||
this.line2, | ||
this.postalCode, | ||
this.sortingCode, | ||
this.state, | ||
}); | ||
|
||
/// Factory method to construct an Address from a JSON object. | ||
factory Address.fromJson(Map<String, dynamic> json) { | ||
return Address( | ||
city: json['city'] as String?, | ||
countryCode: json['countryCode'] as String?, | ||
dependentLocality: json['dependentLocality'] as String?, | ||
line1: json['line1'] as String?, | ||
line2: json['line2'] as String?, | ||
postalCode: json['postalCode'] as String?, | ||
sortingCode: json['sortingCode'] as String?, | ||
state: json['state'] as String?, | ||
); | ||
} | ||
|
||
/// The city of the address. | ||
final String? city; | ||
|
||
/// The country code of the address. | ||
final String? countryCode; | ||
|
||
/// The dependent locality of the address. | ||
final String? dependentLocality; | ||
|
||
/// The first line of the address. | ||
final String? line1; | ||
|
||
/// The second line of the address. | ||
final String? line2; | ||
|
||
/// The postal code of the address. | ||
final String? postalCode; | ||
|
||
/// The sorting code of the address. | ||
final String? sortingCode; | ||
|
||
/// The state of the address. | ||
final String? state; | ||
} |
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.