MyBusinessInfo class
A model representing the business information for the user's company.
This class extends BusinessParty and includes additional fields, such as companyID, to store business-related details. It also provides methods for serializing and saving this data to local storage.
- Inheritance
-
- Object
- PartyBase
- BusinessParty
- MyBusinessInfo
Constructors
- MyBusinessInfo({required String name, required String address, required String taxId, required String buildingNumber, required String citySubdivision, required String city, required String postalZone, required String countryCode, required String schemeID, required String businessID, required String companyID})
- Creates a new instance of MyBusinessInfo.
-
MyBusinessInfo.fromJson(Map<
String, dynamic> json) -
Creates a new MyBusinessInfo instance from a JSON map.
factory
Properties
- address ↔ String
-
The address of the party.
getter/setter pairinherited
- buildingNumber ↔ String
-
The building number of the business party.
getter/setter pairinherited
- businessID ↔ String
-
The business ID (e.g., commercial registration number).
getter/setter pairinherited
- city ↔ String
-
The city where the business is located.
getter/setter pairinherited
- citySubdivision ↔ String
-
The subdivision of the city where the business is located.
getter/setter pairinherited
- companyID → String
-
The unique identifier for the company.
final
- countryCode ↔ String
-
The country code where the business is located.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The name of the party (individual or business).
getter/setter pairinherited
- postalZone ↔ String
-
The postal zone (postal code) of the business.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemeID ↔ String
-
The scheme ID for the business, typically 'CRN' (Commercial Registration Number).
getter/setter pairinherited
- taxId ↔ String
-
The tax identification number of the party.
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
) → Future< void> - Saves the current MyBusinessInfo instance to a local file.
-
toJson(
) → Map< String, dynamic> - Converts the MyBusinessInfo instance to a JSON-serializable map.
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
XmlBuilder builder) → void -
Converts the business party's details into XML format.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
load(
) → Future< MyBusinessInfo?> - Loads the MyBusinessInfo instance from local storage.