toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
json[r'name'] = name;
if (description != null) {
json[r'description'] = description;
}
json[r'orgID'] = orgID;
json[r'script'] = script;
if (language != null) {
json[r'language'] = language;
}
if (url != null) {
json[r'url'] = url;
}
if (createdAt != null) {
json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
}
if (updatedAt != null) {
json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
}
return json;
}