SuggestedPostApprovalFailed class abstract

Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.

Available extensions
Annotations
  • @freezed

Constructors

SuggestedPostApprovalFailed({@JsonKey.new(name: 'suggested_post_message') Message? suggestedPostMessage, @JsonKey.new(name: 'price') required SuggestedPostPrice price})
Creates a new SuggestedPostApprovalFailed object.
const
factory
SuggestedPostApprovalFailed.fromJson(Map<String, dynamic> json)
Creates a new SuggestedPostApprovalFailed object from a JSON Map.
factory

Properties

copyWith → $SuggestedPostApprovalFailedCopyWith<SuggestedPostApprovalFailed>
Create a copy of SuggestedPostApprovalFailed with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
price → SuggestedPostPrice
Expected price of the post
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suggestedPostMessage → Message?
Optional. Message containing the suggested post whose approval has failed. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_SuggestedPostApprovalFailed value)) → TResult

Available on SuggestedPostApprovalFailed, provided by the SuggestedPostApprovalFailedPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_SuggestedPostApprovalFailed value)?) → TResult?

Available on SuggestedPostApprovalFailed, provided by the SuggestedPostApprovalFailedPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_SuggestedPostApprovalFailed value)?, {required TResult orElse()}) → TResult

Available on SuggestedPostApprovalFailed, provided by the SuggestedPostApprovalFailedPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this SuggestedPostApprovalFailed to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited