AppPassword constructor

  1. @JsonSerializable(includeIfNull: false)
const AppPassword({
  1. @Default(comAtprotoServerCreateAppPasswordAppPassword) @JsonKey(name: r'$type') String $type,
  2. required String name,
  3. required String password,
  4. required DateTime createdAt,
  5. @Default(false) bool privileged,
  6. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory AppPassword({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.server.createAppPassword#appPassword`
  @Default(comAtprotoServerCreateAppPasswordAppPassword)
  @JsonKey(name: r'$type')
  String $type,
  required String name,
  required String password,
  required DateTime createdAt,
  @Default(false) bool privileged,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _AppPassword;