SonarrCommand class

Model for the response for executing a command in Sonarr.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

SonarrCommand({String? name, SonarrCommandBody? body, String? priority, String? status, DateTime? queued, String? trigger, String? state, bool? manual, DateTime? startedOn, bool? sendUpdatesToClient, bool? updateScheduledTask, int? id})
SonarrCommand.fromJson(Map<String, dynamic> json)
Deserialize a JSON map to a SonarrCommand object.
factory

Properties

body SonarrCommandBody?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
Identifier of command instance
getter/setter pair
manual bool?
Was this command manually executed?
getter/setter pair
message String?
Current message of the command
getter/setter pair
name String?
Name of the command
getter/setter pair
priority String?
Priority of the command
getter/setter pair
queued DateTime?
DateTime that the command was queued
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendUpdatesToClient bool?
Will updates be sent to the client for this command?
getter/setter pair
started DateTime?
DateTime that the command was started
getter/setter pair
startedOn DateTime?
DateTime that the command was started on
getter/setter pair
state String?
Current state of the command
getter/setter pair
stateChangeTime DateTime?
DateTime that the command state was changed at
getter/setter pair
status String?
Current status of the command
getter/setter pair
trigger String?
Method that triggered the command
getter/setter pair
updateScheduledTask bool?
Will this command update the scheduled tasks?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize a SonarrCommand object to a JSON map.
toString() String
Returns a JSON-encoded string version of this object.
override

Operators

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