toMap method

  1. @override
Map<String, Object?> toMap()
override

Implementation

@override
Map<String, Object?> toMap() {
  return {
    if (hints != null) 'hints': hints!.map((e) => e.toMap()).toList(),
    if (costPriority != null) 'costPriority': costPriority,
    if (speedPriority != null) 'speedPriority': speedPriority,
    if (intelligencePriority != null)
      'intelligencePriority': intelligencePriority,
  };
}