toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.dateCreated != null) {
json[r'date_created'] = this.dateCreated!.toUtc().toIso8601String();
} else {
json[r'date_created'] = null;
}
if (this.lastUpdated != null) {
json[r'last_updated'] = this.lastUpdated!.toUtc().toIso8601String();
} else {
json[r'last_updated'] = null;
}
json[r'function_id'] = this.functionId;
json[r'name'] = this.name;
return json;
}