Site class

Annotations
  • @freezed

Constructors

Site({required int id, required String name, String? sidebar, required DateTime published, DateTime? updated, String? icon, String? banner, String? description, required String actorId, required String lastRefreshedAt, required String inboxUrl, required String publicKey, required int instanceId})
const
factory
Site.fromJson(Map<String, dynamic> json)
factory

Properties

actorId String
no setterinherited
no setterinherited
copyWith → $SiteCopyWith<Site>
Create a copy of Site with the given fields replaced by the non-null parameter values.
no setterinherited
description String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon String?
no setterinherited
id int
no setterinherited
inboxUrl String
no setterinherited
instanceId int
no setterinherited
lastRefreshedAt String
no setterinherited
name String
no setterinherited
publicKey String
no setterinherited
published DateTime
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>
Serializes this Site to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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