toMap method

  1. @protected
Map<String, dynamic> toMap()
inherited

Convert command to a map for serialization Override in subclasses to include command-specific data

Implementation

@protected
Map<String, dynamic> toMap() {
  return {
    'commandId': _commandId,
    'timestamp': timestamp.toIso8601String(),
    'metadata': metadata,
    'type': runtimeType.toString(),
  };
}