CompanySettings constructor

  1. @JsonSerializable(explicitToJson: true)
CompanySettings({
  1. @Default('') String? name,
  2. @Default('') String? address1,
  3. @Default('') String? address2,
  4. @Default('') String? city,
  5. @Default('') String? state,
  6. @Default('') String? phone,
  7. @Default('') String? email,
  8. @Default('') String? website,
  9. @Default('') @JsonKey(name: 'custom_value1') String? customValue1,
  10. @Default('') @JsonKey(name: 'custom_value2') String? customValue2,
  11. @Default('') @JsonKey(name: 'custom_value3') String? customValue3,
  12. @Default('') @JsonKey(name: 'custom_value4') String? customValue4,
  13. @Default('') @JsonKey(name: 'postal_code') String? postalCode,
  14. @Default('') @JsonKey(name: 'country_id') String? countryId,
  15. @Default('') @JsonKey(name: 'vat_number') String? vatNumber,
  16. @Default(<Document>[]) List<Document> documents,
  17. @Default({}) @JsonKey(name: 'custom_fields') Map<String, String> customFields,
})

CompanySettings factory constructor

Implementation

@JsonSerializable(explicitToJson: true)
factory CompanySettings({
  @Default('') String? name,
  @Default('') String? address1,
  @Default('') String? address2,
  @Default('') String? city,
  @Default('') String? state,
  @Default('') String? phone,
  @Default('') String? email,
  @Default('') String? website,
  @Default('') @JsonKey(name: 'custom_value1') String? customValue1,
  @Default('') @JsonKey(name: 'custom_value2') String? customValue2,
  @Default('') @JsonKey(name: 'custom_value3') String? customValue3,
  @Default('') @JsonKey(name: 'custom_value4') String? customValue4,
  @Default('') @JsonKey(name: 'company_logo') String? companyLogo,
  @Default('') @JsonKey(name: 'postal_code') String? postalCode,
  @Default('') @JsonKey(name: 'country_id') String? countryId,
  @Default('') @JsonKey(name: 'vat_number') String? vatNumber,
  @Default(<Document>[]) List<Document> documents,
  @Default({})
  @JsonKey(name: 'custom_fields')
      Map<String, String> customFields,
}) = _CompanySettings;