toJson method
Implementation
Map<String, dynamic> toJson() => {
if (action != null) 'action': action,
if (targetPrefix != null) 'targetPrefix': targetPrefix,
if (actorRoleIn != null) 'actorRoleIn': actorRoleIn,
if (safetyClass != null) 'safetyClass': safetyClass!.name,
if (transport != null) 'transport': transport,
};