toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (name != null) {
json[r'Name'] = name;
}
if (description != null) {
json[r'Description'] = description;
}
if (isDefault != null) {
json[r'IsDefault'] = isDefault;
}
if (segmentId != null) {
json[r'SegmentId'] = segmentId;
}
if (createdById != null) {
json[r'CreatedById'] = createdById;
}
if (modifiedById != null) {
json[r'ModifiedById'] = modifiedById;
}
if (assetId != null) {
json[r'AssetId'] = assetId;
}
if (asset != null) {
json[r'Asset'] = asset;
}
if (models != null) {
json[r'Models'] = models;
}
if (modelEntities != null) {
json[r'ModelEntities'] = modelEntities;
}
return json;
}