toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'document'] = this.document;
json[r'status'] = this.status;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
json[r'platform'] = this.platform;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.difficulty != null) {
json[r'difficulty'] = this.difficulty;
} else {
json[r'difficulty'] = null;
}
return json;
}