ConversationParticipant constructor

const ConversationParticipant({
  1. @JsonKey(name: 'id', required: true) required String id,
  2. @JsonKey(name: 'type', required: true) required String type,
  3. @JsonKey(name: 'name') String? name,
  4. @JsonKey(name: 'picture') String? picture,
  5. @JsonKey(name: 'email') String? email,
})

Implementation

const factory ConversationParticipant({
  /// Participant Id
  @JsonKey(name: 'id', required: true) required String id,

  /// Participant type
  @JsonKey(name: 'type', required: true) required String type,

  /// Participant name
  ///
  /// Can be null for the bot
  @JsonKey(name: 'name') String? name,

  /// Participant picture
  ///
  /// Can be null for the bot
  @JsonKey(name: 'picture') String? picture,

  /// Participant email
  @JsonKey(name: 'email') String? email,
}) = _ConversationParticipant;