InputProfilePhoto class sealed
This object describes a profile photo to set. It can be one of
- InputProfilePhotoStatic
- InputProfilePhotoAnimated
- Annotations
-
- @Freezed(unionKey: 'type', unionValueCase: FreezedUnionCase.snake)
Constructors
- InputProfilePhoto.animated({@JsonKey(name: 'type') @Default(InputProfilePhotoType.animated) InputProfilePhotoType type, @JsonKey(name: 'animation') @InputFileConverter() required InputFile animation, @JsonKey(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(name: 'type') @Default(InputProfilePhotoType.static) InputProfilePhotoType type, @JsonKey(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