toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final fleetId = this.fleetId;
  final message = this.message;
  final type = this.type;
  return {
    if (fleetId != null) 'FleetId': fleetId,
    if (message != null) 'Message': message,
    if (type != null) 'Type': type.toValue(),
  };
}