ContactPoint constructor

ContactPoint({
  1. @JsonKey(name: 'ID') String? id,
  2. @JsonKey(name: 'System', unknownEnumValue: ContactPointSystemEnum.phone) ContactPointSystemEnum? system,
  3. @JsonKey(name: 'Value') String? value,
  4. @JsonKey(name: 'Use', unknownEnumValue: ContactPointUseEnum.mobile) ContactPointUseEnum? use,
  5. @JsonKey(name: 'Rank') int? rank,
  6. @JsonKey(name: 'Period') Period? period,
})

Implementation

factory ContactPoint({
  @JsonKey(name: 'ID') String? id,
  @JsonKey(name: 'System', unknownEnumValue: ContactPointSystemEnum.phone)
      ContactPointSystemEnum? system,

  /// The actual contact point details, in a form that is meaningful to the
  ///  designated communication system (i.e. phone number or email address).
  @JsonKey(name: 'Value') String? value,

  /// Identifies the purpose for the contact point.
  @JsonKey(name: 'Use', unknownEnumValue: ContactPointUseEnum.mobile)
      ContactPointUseEnum? use,

  /// Specifies a preferred order in which to use a set of contacts.
  ///  ContactPoints with lower rank values are more preferred than those with higher rank values.
  @JsonKey(name: 'Rank') int? rank,

  /// Time period when the contact point was/is in use
  @JsonKey(name: 'Period') Period? period,
}) = _ContactPoint;