ClientContact constructor
- @JsonSerializable(explicitToJson: true)
- @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 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;