toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.channel != null) {
json[r'channel'] = this.channel;
} else {
json[r'channel'] = null;
}
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.expires != null) {
json[r'expires'] = this.expires!.toUtc().toIso8601String();
} else {
json[r'expires'] = null;
}
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}