Returns JSON-serializable representation of this operation.
Map<String, dynamic> toJson() { final json = {key: value}; if (_attributes != null) json[Operation.attributesKey] = attributes; return json; }