InputProfilePhoto.static constructor

const InputProfilePhoto.static({
  1. @JsonKey(name: 'type') @Default(InputProfilePhotoType.static) InputProfilePhotoType type,
  2. @JsonKey(name: 'photo') @InputFileConverter() required InputFile photo,
})

A static profile photo in the .JPG format.

Implementation

const factory InputProfilePhoto.static({
  /// Type of the profile photo, always "static"
  @JsonKey(name: 'type')
  @Default(InputProfilePhotoType.static)
  final InputProfilePhotoType type,

  /// The static profile photo. Profile photos can't be reused and can only be
  /// uploaded as a new file.
  @JsonKey(name: 'photo') @InputFileConverter() required InputFile photo,
}) = InputProfilePhotoStatic;