ClientContact constructor

  1. @JsonSerializable(explicitToJson: true)
ClientContact({
  1. @Default('') String id,
  2. @Default('') @JsonKey(name: 'custom_value1') String customValue1,
  3. @Default('') @JsonKey(name: 'custom_value2') String customValue2,
  4. @Default('') @JsonKey(name: 'custom_value3') String customValue3,
  5. @Default('') @JsonKey(name: 'custom_value4') String customValue4,
  6. @Default('') @JsonKey(name: 'first_name') String firstName,
  7. @Default('') @JsonKey(name: 'last_name') String lastName,
  8. @Default('') String email,
  9. @Default(false) @JsonKey(name: 'is_primary') bool isPrimary,
  10. @Default(false) @JsonKey(name: 'is_locked') bool isLocked,
  11. @Default('') String phone,
  12. @Default('') @JsonKey(name: 'contact_key') String key,
  13. @Default(true) @JsonKey(name: 'send_email') bool sendEmail,
  14. @Default(0) @JsonKey(name: 'last_login') int lastLogin,
  15. @Default('') String password,
})

ClientContact factory constructor

Implementation

@JsonSerializable(explicitToJson: true)
factory ClientContact({
  @Default('') String id,
  @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: 'first_name') String firstName,
  @Default('') @JsonKey(name: 'last_name') String lastName,
  @Default('') String email,
  @Default(false) @JsonKey(name: 'is_primary') bool isPrimary,
  @Default(false) @JsonKey(name: 'is_locked') bool isLocked,
  @Default('') String phone,
  @Default('') @JsonKey(name: 'contact_key') String key,
  @Default(true) @JsonKey(name: 'send_email') bool sendEmail,
  @Default(0) @JsonKey(name: 'last_login') int lastLogin,
  @Default('') String password,
}) = _ClientContact;