InputProfilePhoto class sealed
This object describes a profile photo to set. It can be one of
- InputProfilePhotoStatic
- InputProfilePhotoAnimated
- Annotations
- 
    - @Freezed.new(unionKey: 'type', unionValueCase: FreezedUnionCase.snake)
 
Constructors
- InputProfilePhoto.animated({@JsonKey.new(name: 'type') @Default.new(InputProfilePhotoType.animated) InputProfilePhotoType type, @JsonKey.new(name: 'animation') @InputFileConverter() required InputFile animation, @JsonKey.new(name: 'main_frame_timestamp') double? mainFrameTimestamp})
- 
          An animated profile photo in the MPEG4 format.
            constfactory
- 
          InputProfilePhoto.fromJson(Map<String, dynamic> json)
- 
          Creates a new InputProfilePhoto object from a JSON Map.
            factory
- InputProfilePhoto.static({@JsonKey.new(name: 'type') @Default.new(InputProfilePhotoType.static) InputProfilePhotoType type, @JsonKey.new(name: 'photo') @InputFileConverter() required InputFile photo})
- 
          A static profile photo in the .JPG format.
            constfactory
Properties
- 
  copyWith
  → $InputProfilePhotoCopyWith<InputProfilePhoto> 
- 
  Create a copy of InputProfilePhoto
with the given fields replaced by the non-null parameter values.
  no setterinherited
- file → InputFile
- 
  The InputFile getter
  no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- type → InputProfilePhotoType
- 
  Type of the profile photo, always "static"
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  Serializes this InputProfilePhoto to a JSON map.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited