Contact constructor
Contact({
- @JsonKey(name: 'id') String? id,
- @JsonKey(name: 'contactType') ContactType? contactType,
- @JsonKey(name: 'contactValue') String? value,
- @JsonKey(name: 'active', defaultValue: false) bool? active,
- @JsonKey(name: 'optedIn', defaultValue: false) bool? optedIn,
Implementation
factory Contact({
@JsonKey(name: 'id') String? id,
@JsonKey(name: 'contactType') ContactType? contactType,
@JsonKey(name: 'contactValue') String? value,
@JsonKey(name: 'active', defaultValue: false) bool? active,
@JsonKey(name: 'optedIn', defaultValue: false) bool? optedIn,
}) = _Contact;