SupplierProfile class abstract
- Available extensions
- Annotations
-
- @Freezed.new(makeCollectionsUnmodifiable: false)
Constructors
-
SupplierProfile({@JsonKey.new(name: 'supplierID') String? supplierID, @JsonKey.new(name: 'profileID') String? profileID, @JsonKey.new(name: 'erpSupplierID') String? erpSupplierID, @JsonKey.new(name: 'payables_account') PayablesAccount? payablesAccount, @JsonKey.new(name: 'supplierKYC') Map<
String, dynamic> ? supplierKYC, @JsonKey.new(name: 'active') bool? active, @JsonKey.new(name: 'accountType', unknownEnumValue: SupplierAccountType.unknown) SupplierAccountType? accountType, @JsonKey.new(name: 'underOrganization') bool? underOrganization, @JsonKey.new(name: 'isOrganizationVerified') bool? isOrganizationVerified, @JsonKey.new(name: 'sladeCode') String? sladeCode, @JsonKey.new(name: 'parentOrganizationID') String? parentOrganizationID, @JsonKey.new(name: 'organizationName') String? organizationName, @JsonKey.new(name: 'hasBranches') bool? hasBranches, @JsonKey.new(name: 'location') Location? location, @JsonKey.new(name: 'partnerType', unknownEnumValue: SupplierPartnerType.unknown) SupplierPartnerType? partnerType, @JsonKey.new(name: 'partnerSetupComplete') bool? partnerSetupComplete, @JsonKey.new(name: 'kycSubmitted') bool? kycSubmitted}) -
factory
-
SupplierProfile.fromJson(Map<
String, dynamic> json) -
factory
- SupplierProfile.initial()
-
factory
Properties
- accountType → SupplierAccountType?
-
no setterinherited
- active → bool?
-
no setterinherited
-
copyWith
→ $SupplierProfileCopyWith<
SupplierProfile> -
Create a copy of SupplierProfile
with the given fields replaced by the non-null parameter values.
no setterinherited
- erpSupplierID → String?
-
no setterinherited
- hasBranches → bool?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOrganizationVerified → bool?
-
no setterinherited
- kycSubmitted → bool?
-
no setterinherited
- location → Location?
-
no setterinherited
- organizationName → String?
-
no setterinherited
- parentOrganizationID → String?
-
no setterinherited
- partnerSetupComplete → bool?
-
no setterinherited
- partnerType → SupplierPartnerType?
-
no setterinherited
- payablesAccount → PayablesAccount?
-
no setterinherited
- profileID → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sladeCode → String?
-
no setterinherited
- supplierID → String?
-
no setterinherited
-
supplierKYC
→ Map<
String, dynamic> ? -
no setterinherited
- underOrganization → bool?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_SupplierProfile value)) → TResult -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SupplierProfile value)?) → TResult? -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_SupplierProfile value)?, {required TResult orElse()}) → TResult -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? supplierID, String? profileID, String? erpSupplierID, PayablesAccount? payablesAccount, Map< String, dynamic> ? supplierKYC, bool? active, SupplierAccountType? accountType, bool? underOrganization, bool? isOrganizationVerified, String? sladeCode, String? parentOrganizationID, String? organizationName, bool? hasBranches, Location? location, SupplierPartnerType? partnerType, bool? partnerSetupComplete, bool? kycSubmitted)?, {required TResult orElse()}) → TResult -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this SupplierProfile to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? supplierID, String? profileID, String? erpSupplierID, PayablesAccount? payablesAccount, Map< String, dynamic> ? supplierKYC, bool? active, SupplierAccountType? accountType, bool? underOrganization, bool? isOrganizationVerified, String? sladeCode, String? parentOrganizationID, String? organizationName, bool? hasBranches, Location? location, SupplierPartnerType? partnerType, bool? partnerSetupComplete, bool? kycSubmitted)) → TResult -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? supplierID, String? profileID, String? erpSupplierID, PayablesAccount? payablesAccount, Map< String, dynamic> ? supplierKYC, bool? active, SupplierAccountType? accountType, bool? underOrganization, bool? isOrganizationVerified, String? sladeCode, String? parentOrganizationID, String? organizationName, bool? hasBranches, Location? location, SupplierPartnerType? partnerType, bool? partnerSetupComplete, bool? kycSubmitted)?) → TResult? -
Available on SupplierProfile, provided by the SupplierProfilePatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited