toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (name != null) 'name': name!,
if (role != null) 'role': role!,
if (targetAccount != null) 'targetAccount': targetAccount!,
if (targetLocation != null) 'targetLocation': targetLocation!,
if (targetType != null) 'targetType': targetType!,
};