Site class

Annotations
  • @freezed

Constructors

Site({required int id, required String name, String? sidebar, String? description, required DateTime published, DateTime? updated, required bool enableDownvotes, required bool openRegistration, required bool enableNsfw, required bool communityCreationAdminOnly, String? icon, String? banner, required bool requireEmailVerification, required bool requireApplication, String? applicationQuestion, required bool privateInstance, required String defaultTheme, required String actorId, required String lastRefreshedAt, required String inboxUrl, required String publicKey, required String instanceHost})
const
factory
Site.fromJson(Map<String, dynamic> json)
factory

Properties

actorId String
no setterinherited
applicationQuestion String?
no setterinherited
no setterinherited
communityCreationAdminOnly bool
no setterinherited
copyWith → $SiteCopyWith<Site>
no setterinherited
defaultTheme String
no setterinherited
description String?
no setterinherited
enableDownvotes bool
no setterinherited
enableNsfw bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon String?
no setterinherited
id int
no setterinherited
inboxUrl String
no setterinherited
instanceHost String
no setterinherited
lastRefreshedAt String
no setterinherited
name String
no setterinherited
openRegistration bool
no setterinherited
privateInstance bool
no setterinherited
publicKey String
no setterinherited
published DateTime
no setterinherited
requireApplication bool
no setterinherited
requireEmailVerification bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
no setterinherited
updated DateTime?
no setterinherited

Methods

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

Operators

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