toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (assetId != null) {
json[r'AssetId'] = assetId;
}
if (tenantGuid != null) {
json[r'TenantGuid'] = tenantGuid;
}
if (name != null) {
json[r'Name'] = name;
}
if (models != null) {
json[r'Models'] = models;
}
if (segments != null) {
json[r'Segments'] = segments;
}
if (roles != null) {
json[r'Roles'] = roles;
}
if (permissions != null) {
json[r'Permissions'] = permissions;
}
if (dateCreated != null) {
json[r'DateCreated'] = dateCreated.toUtc().toIso8601String();
}
if (dateModified != null) {
json[r'DateModified'] = dateModified.toUtc().toIso8601String();
}
if (state != null) {
json[r'State'] = state;
}
return json;
}