CreatePost class

Implemented types
Annotations
  • @freezed

Constructors

CreatePost({required String name, String? url, String? body, bool? nsfw, required int communityId, required String auth, String? honeypot})
const
factory
CreatePost.fromJson(Map<String, dynamic> json)
factory

Properties

auth String
no setterinherited
body String?
no setterinherited
communityId int
no setterinherited
copyWith → $CreatePostCopyWith<CreatePost>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
honeypot String?
no setterinherited
httpMethod HttpMethod
final
name String
no setterinherited
nsfw bool?
no setterinherited
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
responseFactory(Map<String, dynamic> json) PostView
override
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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