toJson method

Map<String, dynamic> toJson()

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,
    };